







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Provides a read-only view of this collection. The returned ICollection<T> provides
a view of the collection that prevents modifications to the collection. Use the method to provide
access to the collection without allowing changes. Since the returned object is just a view,
changes to the collection will be reflected in the view.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public virtual ICollection<T> AsReadOnly() |
Visual Basic (Declaration) |
---|
Public Overridable Function AsReadOnly As ICollection(Of T) |
Visual C++ |
---|
public: virtual ICollection<T>^ AsReadOnly () |
Return Value
An ICollection<T> that provides read-only access to the collection.
See Also
CollectionBase<(Of <T>)> Class
Wintellect.PowerCollections Namespace